package com.example.software.dao;

import com.example.software.dto.ApplyEntityDTO;
import com.example.software.dto.WorkdayDTO;
import com.example.software.entity.WorkdayEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.software.vo.workdayVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 
 * 
 * @author wxy
 * @email wxy9496099@163.com
 * @date 2024-10-28 10:54:37
 */
@Mapper
public interface WorkdayDao extends BaseMapper<WorkdayEntity> {

    List<workdayVO> getWorkdayList(WorkdayDTO workdayDTO);

    @Select("select id from workday where doctor_id = #{doctorId} and work_time = #{workTime} and ampm = #{ampm}")
    Long getWorkdayID(ApplyEntityDTO applyEntityDTO);
}
